const md5 = require('md5');

let str = '123456';

let md5str = md5(str);

console.log(md5str);